Instance 23
AuthorizationErrorResponse.parse(final URI redirectURI,final Map<String,String> params)#0{
if (StringUtils.isBlank(params.get("error")))
throw new ParseException("Missing error code");
String errorURIString = params.get("error_uri");
if (errorURIString != null) {
try {
errorURI = new URI(errorURIString);
} catch (URISyntaxException e) {
throw new ParseException("Invalid error URI: " + errorURIString, e);
}
}
ErrorObject error = new ErrorObject(errorCode, errorDescription, HTTPResponse.SC_FOUND, errorURI);
State state = State.parse(params.get("state"));
return new AuthorizationErrorResponse(redirectURI, error, null, state);
}
|
|